<%= tr8n_lightbox_header_tag %>
<div class="inner">
    <div class="hd">
        <%= tr8n_lightbox_title_tag(tra("Source Details")) %>
    </div>
    <div class="bd" style="padding-bottom:60px;">
        <%= form_for(@source, :as => :source, :url => {:id => @source.id}, :html => {:id => 'tr8n_form', :method => :post, :class => "tr8n"}) do |form| %>
            <%= hidden_field_tag(:origin, params[:origin]) %>
            <table class="admin_table">
                <tr>
                    <th>
                        Application:
                    </th>
                    <td>
                        <% if @source.id and @source.application %>
                            <%= @source.application.name %>
                            <%= form.hidden_field :application_id %>
                        <% else %>
                            <%= select_tag "source[application_id]", options_for_select(@apps, @source.application_id || params[:app_id]), :style=>"width:99%;" %>
                        <% end %>
                    </td>
                </tr>
                <tr>
                    <th>
                        Source:
                    </th>
                    <td>
                        <%= form.text_field :source, :style=>"width:99%;" %>
                    </td>
                </tr>
                <tr>
                    <th>
                        Name:
                    </th>
                    <td>
                        <%= form.text_field :name, :style=>"width:99%;" %>
                    </td>
                </tr>
                <tr>
                    <th>
                       Description:
                    </th>
                    <td>
                        <%= form.text_area :description, :style=>"width:99%;height:80px;" %>
                    </td>
                </tr>
            </table>
        <% end %>
    </div>
    <div class="ft">
        <%= tr8n_lightbox_buttons_tag %>
    </div>
</div>
<%= tr8n_lightbox_footer_tag %>
